import java.util.Arrays;

public class Test {

    public static void main(String[] args) {
        int[][] arr1={{1,2,3,4},{12,4,6,8}};
        int[][] arr2=new int[2][3];


        System.out.println(Arrays.deepToString(arr1));
        System.out.println(Arrays.deepToString(arr2));
    }

    public static void main1(String[] args) {



       int[][] arr1={{1,2,3,4},{12,4,6,8}};
       int[][] arr2=new int[2][3];
       int[][] arr3=new int[2][];   //不规则二维数组

        for (int i = 0; i <arr1.length ; i++) {
            System.out.println(Arrays.toString(arr1[i]));

        }


        System.out.println("-----------------------");
        for (int i = 0; i <arr2.length ; i++) {
            System.out.println(Arrays.toString(arr2[i]));

        }


    }
}
